﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
public partial class _Default : NoTheme
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["reuid"] != null)
            Pan.Cookie.WriteCookie("reuid", Request["reuid"].ToString(), 120);
        if (string.IsNullOrEmpty(Pan.Sys_Config.GetCurrentCityName()))
        {
            Pan.Sys_Config.InitCity("guangzhou");
        }
        Response.Redirect("~/pages/index.aspx");
        //string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
        //if (null == result || result == String.Empty)
        //{
        //    result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
        //}

        //if (null == result || result == String.Empty)
        //{
        //    result = HttpContext.Current.Request.UserHostAddress;
        //}
        //Response.Write("IP：" + result);
       
    }
}
